package com.yjq.test;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class test2 {
    @Test
    public void Test(){
        ApplicationContext context = new ClassPathXmlApplicationContext("beanss.xml");
        Hello hello = context.getBean("hello4",Hello.class);
        Hello hello1 = context.getBean("hello4",Hello.class);
        System.out.println(hello);
        System.out.println(hello1);
        System.out.println(hello == hello1);
        System.out.println(hello.toString());
    }

}
